package com.youlai.boot.bmp.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;

/**
 * 单与工作流绑定表单对象
 *
 * @author rabit
 * @since 2025-11-04 16:22
 */

@Data
@Schema(description = "单与工作流绑定表单对象")
public class FormWorkflowBindingForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "表单编码")
    @NotBlank(message = "表单编码不能为空")
    @Size(max=100, message="表单编码长度不能超过100个字符")
    private String formCode;

    @Schema(description = "表单版本号")
    @NotNull(message = "表单版本号不能为空")
    private Integer formVersion;

    @Schema(description = "工作流定义Key")
    @NotBlank(message = "工作流定义Key不能为空")
    @Size(max=100, message="工作流定义Key长度不能超过100个字符")
    private String workflowKey;

    @Schema(description = "工作流版本号")
    @NotNull(message = "工作流版本号不能为空")
    private Integer workflowVersion;

    @Schema(description = "绑定类型：main/child")
    @Size(max=50, message="绑定类型：main/child长度不能超过50个字符")
    private String bindingType;

    @Schema(description = "创建人ID")
    private Long createBy;


    @Schema(description = "修改人ID")
    private Long updateBy;


}
